package com.guet.mapper;

import com.github.pagehelper.Page;
import com.guet.DTO.VideoDTO;
import com.guet.DTO.VideoPageDTO;
import com.guet.Entity.Video;
import com.guet.VO.VideoVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface VideoMapper {

    void insert(Video video);

    Page<VideoVO> list(VideoPageDTO videoPageDTO);

    VideoVO queryById(Integer id);

    @Delete("delete from video where id = #{id}")
    void deleteById(Integer id);
}
